<!DOCTYPE html>
<html>
    <head>
        <title>职统</title>
        <link rel="stylesheet" href="/styles/common.css"/>
        <style type="text/css">
            
        </style>
    </head>
    <body>
        <#include "top.ftl">
        <div class="page-body">
            <#include "leftmenu.ftl">
            <div class="page-content">
                <div class="content-nav">
                    个人中心 > 我的会议
                </div>
                <table class="listtable">
                    <caption>
                        未来我要参加的会议:
                    </caption>
                    <tr class="listheader">
                        <th>会议名称</th>
                        <th>会议室名称</th>
                        <th>会议开始时间</th>
                        <th>会议结束时间</th>
                        <th>会议预定时间</th>
                        <th>发起者</th>
                        <th>操作</th>
                    </tr>
                    <#if userful??>
                        <#list userful as uf>
                            <tr>
                                <td>${uf.meetingname}</td>
                                <td>${uf.roomname}</td>
                                <td>${(uf.starttime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${(uf.endtime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${(uf.reservationtime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${uf.employeename}</td>
                                <td>
                                    <a class="clickbutton" href="meetingdetails?id=${uf.meetingid}">查看详情</a>
                                </td>
                            </tr>
                        </#list>
                    </#if>

                </table>
                <table class="listtable">
                    <caption>
                        过期的会议
                    </caption>
                    <tr class="listheader">
                        <th>会议名称</th>
                        <th>会议室名称</th>
                        <th>会议开始时间</th>
                        <th>会议结束时间</th>
                        <th>会议预定时间</th>
                        <th>发起者</th>
                        <th>操作</th>
                    </tr>
                    <#if unuserful??>
                        <#list unuserful as uuf>
                            <tr>
                                <td>${uuf.meetingname}</td>
                                <td>${uuf.roomname}</td>
                                <td>${(uuf.starttime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${(uuf.endtime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${(uuf.reservationtime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${uuf.employeename}</td>
                                <td>
                                    <a class="clickbutton" href="meetingdetails?id=${uuf.meetingid}">查看详情</a>
                                </td>
                            </tr>
                        </#list>
                    </#if>

                </table>
                <table class="listtable">
                    <caption>
                        已取消的会议
                    </caption>
                    <tr class="listheader">
                        <th>会议名称</th>
                        <th>会议室名称</th>
                        <th>会议开始时间</th>
                        <th>取消时间</th>
                        <th>发起者</th>
                        <th>取消原因</th>
                    </tr>
                    <#if unuserful??>
                        <#list cancel as cc>
                            <tr>
                                <td>${cc.meetingname}</td>
                                <td>${cc.roomname}</td>
                                <td>${(cc.starttime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${(cc.canceledtime)?string('yyyy.MM.dd HH:mm:ss')}</td>
                                <td>${cc.employeename}</td>
                                <td>${cc.description}</td>
                            </tr>
                        </#list>
                    </#if>
                </table>
            </div>
        </div>
        <div class="page-footer">
            <hr/>

        </div>
    </body>
</html>